﻿using ExpressesClass.BestApi.Utils;
using ExpressesClass.StoApi.Base;
using ExpressesClass.StoApi.billCancel.response;
using ExpressesClass.StoApi.Util;

namespace ExpressesClass.StoApi.billCancel.request
{
    public class BillCancelReq : StoRequest
    {
        public BillCancelReq()
        {
            this.sourceOrderId = "";
            this.billCode = "";
            this.orderSource = "";
            this.remark = "";
            this.creater = "";
            this.orderType = "";
        }
        public string sourceOrderId { get; set; }
        public string billCode { get; set; }
        public string orderSource { get; set; }
        public string remark { get; set; }
        public string creater { get; set; }
        public string orderType { get; set; }

        public override string GetApiName()
        {
            return ConfigUrl.GetApiName("CANCEL");
        }

        public override string GetKeyName()
        {
            return ConfigUrl.GetKeyName("CANCEL");
        }

        public override string GetUrl()
        {
            return ConfigUrl.GetUrl("CANCEL");
        }

        public override StoResponse makeResponse(string rsp)
        {
            return JsonParser.jsonToObj<BillCancelRsp>(rsp);
        }
    }
}
